//
//  NewsTitleCell.m
//  口袋
//
//  Created by dllo on 15/5/26.
//  Copyright (c) 2015年 口袋. All rights reserved.
//

#import "NewsTitleCell.h"
#define WIDTH [UIScreen mainScreen].bounds.size.width
#define HEIGHT [UIScreen mainScreen].bounds.size.height
@implementation NewsTitleCell
- (void)dealloc
{
    [_timeLabel release];
    [_titleLabel release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createLable];
    }
    return self;
}

- (void)createLable
{
    self.titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(0.027 * WIDTH, 0.053 * WIDTH, WIDTH - (0.027 * 2 * WIDTH), 0.08 * WIDTH)];
    self.titleLabel.font = [UIFont boldSystemFontOfSize:21];
    [self addSubview:self.titleLabel];
    [self.titleLabel release];
    
    self.timeLabel = [[UILabel alloc]initWithFrame:CGRectMake(0.027 * WIDTH, 0.053 * WIDTH + self.titleLabel.frame.size.height, WIDTH - (0.027 * 2 * WIDTH), 0.053 * WIDTH)];
    self.timeLabel.font = [UIFont systemFontOfSize:16];
    self.timeLabel.textColor = [UIColor grayColor];
    [self addSubview:self.timeLabel];
    [self.timeLabel release];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
